package com.qian.api.ddj.service;

import com.qian.api.ddj.model.Business;
import com.qian.api.ddj.model.Order;
import com.yaowk.api.common.IBaseService;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface IBusinessService extends IBaseService<Business, Integer> {

    void stop(Collection<Integer> ids);

    void start(Collection<Integer> ids);

    List<Business> findAllBusinessByGroupId(Integer id);

    List<Business> findAllBusinessByChannelId(Integer id);

    List<Business> findBusinessByUserId(Integer userId);

    Business chooseBusiness(Order order, boolean loop);

    Set<Byte> findPayTypeByUserId(Integer userId);

    List<Business> findByZFB();

    Integer getCodeOfSelfZFB(Integer id);
}
